<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMembersTable extends Migration
{
  /**
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
    Schema::create('members', function (Blueprint $table) {
      $table->increments('id');
      $table->string('tel', 15)->unique()->comment('登录手机号');
      $table->string('password', 255)->comment('登录密码');
      $table->boolean('status')->default(true)->comment('用户状态 0正常 1禁用');
      $table->timestamps();
    });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
    Schema::dropIfExists('members');
  }
}
